<?php

/**
 * 
 */
class UserModel 
{
	public function get_user_info()
	{
		 $users = (new Db('user'))->select();

		 foreach ($users as $k => $user) {
		 		
		 	$preg = "/(\d{4})\d{4}(\d{3})/";

		 	$phone = preg_replace($preg, "$1****$2", $user['phone']);

		 	$users[$k]['phone'] = $phone;
		 }

		 return $users;
	}
}
